package org.hang.gift.clients.fallback;

import org.hang.gift.clients.GiftClient;
import org.hang.util.AjaxResult;
import org.springframework.stereotype.Component;

import java.util.Set;


/**
 * 服务降级类，返回托底数据
 */
@Component
public class GiftFallback implements GiftClient {
    @Override
    public AjaxResult get(Long id) {
        return AjaxResult.me().setSuccess(false).setMessage("网络异常,请刷新重试!");
    }

    @Override
    public AjaxResult SearchBySkuIds(Set<Long> skuIds) {
        return AjaxResult.me().setSuccess(false).setMessage("网络异常,请刷新重试!");
    }
}
